import javax.swing.DefaultListModel;
import javax.swing.JList;


public final class ListModel {

	private static ListModel instance = null;
	private JList<Object> boxList;
	private DefaultListModel<Object> listModel;
	
	private ListModel() {
        super();
    }
	
	public final static ListModel getInstance() {
        if (ListModel.instance == null) {
        	synchronized(ListModel.class) {
        		if (ListModel.instance == null) {
        			ListModel.instance = new ListModel();
        			ListModel.instance.listModel = new DefaultListModel<Object>();
        		}
        	}
        }
        return ListModel.instance;
    }

	public DefaultListModel<Object> getListModel() {
		return listModel;
	}

	public void setListModel(DefaultListModel<Object> listModel) {
		this.listModel = listModel;
	}

	public JList<Object> getBoxList() {
		return boxList;
	}

	public void setBoxList(JList<Object> boxList) {
		this.boxList = boxList;
	}
	
	
	
}
